package cc.yugu.yhdw.webserver.biz.client;

import cc.yugu.yhdw.common.entity.RespBody;
import cc.yugu.yhdw.common.protocol.msg05.Msg052000011;
import io.netty.channel.ChannelHandlerContext;
import org.springframework.stereotype.Component;

import java.util.Map;
/**
 * 通过客户端协议工具类对协议052000011处理
 *
 * @Date:Created in 2018/6/27 9:17
 * @Author:
 * @Modified By: zjn 2018/6/27 9:17
 */
@Component
public class Biz052000011 extends AbstractBiz {
    @Override
    public void doBiz(ChannelHandlerContext context, Map<String, Object> attributes, Object message) throws Exception {
        Msg052000011 msg = (Msg052000011) message;
        RespBody<Msg052000011> respBody = ClientBizUtils.respBodyPool.get(msg.getSerial());
        if(respBody != null) {
            respBody.setBody(msg);
        }
    }

}
